package cn.cs.service;

import cn.cs.common.Page;
import cn.cs.pojo.CsMenu;

import java.util.List;
import java.util.Map;

public interface CsMenuService {

    public List<CsMenu> getCsMenuByRoleName(String roleName);

    public CsMenu getCsMenuById(Long id) throws Exception;

    public List<CsMenu> getCsMenuListByMap(Map<String, Object> param);

    public List<CsMenu> getAllMenu();

    public List<CsMenu> getMenuTree(List<String> authoritiesList, List<String> ids);

    public List<CsMenu> getMenuList(String pId, List<String> authoritiesList, List<String> ids);

    public List<CsMenu> getMenuByRoleId(String id);


    public Integer getCsMenuCountByMap(Map<String, Object> param) throws Exception;

    public Integer addCsMenu(CsMenu csMenu) throws Exception;

    public Integer modifyCsMenu(CsMenu csMenu) throws Exception;

    public Integer deleteCsMenuById(Long id) throws Exception;

    public Page<CsMenu> queryCsMenuPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public List<CsMenu> getMenuListAll(List<String> authoritiesList, List<String> ids);
}
